//
//  HWyaoqingjiluTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2020/7/6.
//  Copyright © 2020 Chendaobin. All rights reserved.
//

#import "HWyaoqingjiluTableViewCell.h"


@interface HWyaoqingjiluTableViewCell()
@property(strong,nonatomic)UILabel *datelabel;
@property(strong,nonatomic)UILabel *jifenLabe;
@property(strong,nonatomic)UILabel *xiugailabel;
@end

@implementation HWyaoqingjiluTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self addUIview];
         self.backgroundColor = [UIColor whiteColor];
        
        
    }
    
    
    return  self;
    
}

- (void)addUIview {
    

    
    self.backgroundColor = [UIColor redColor];
    
      self.datelabel  = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, (kScreenW-24)/3, 36)];
     self.datelabel.text = @"2019-09-18\n14:00:00";
     self.datelabel.font = [UIFont systemFontOfSize:10];
     self.datelabel.textColor = RGB(102,102,102);
     self.datelabel.numberOfLines = 2;
     self.datelabel.textAlignment = NSTextAlignmentCenter;
     [self.contentView addSubview:self.datelabel];
    
    
    self.jifenLabe  = [[UILabel alloc]initWithFrame:CGRectMake((kScreenW-24)/3, 0, (kScreenW-24)/3, 36)];
    self.jifenLabe.text = @"+50";
    self.jifenLabe.font = [UIFont systemFontOfSize:10];
    self.jifenLabe.textColor = RGB(102,102,102);
    self.jifenLabe.numberOfLines = 2;
    self.jifenLabe.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.jifenLabe];
    
    
     self.xiugailabel  = [[UILabel alloc]initWithFrame:CGRectMake((kScreenW-24)/3*2, 0, (kScreenW-24)/3, 36)];
     self.xiugailabel.text = @"新手任务—修改";
     self.xiugailabel.font = [UIFont systemFontOfSize:10];
     self.xiugailabel.textColor = RGB(102,102,102);
     self.xiugailabel.numberOfLines = 2;
     self.xiugailabel.textAlignment = NSTextAlignmentCenter;
     [self.contentView addSubview:self.xiugailabel];
     

    
    
    UIView *fengexianview = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenW-24, 1)];
    fengexianview.backgroundColor = RGB(232, 232, 242);
    [self.contentView addSubview:fengexianview];
    
    UIView *shuxian1 = [[UIView alloc]initWithFrame:CGRectMake((kScreenW-24)/3, 0, 1,36)];
       shuxian1.backgroundColor = RGB(232, 232, 242);
       [self.contentView addSubview:shuxian1];
       
     UIView *shuxian2 = [[UIView alloc]initWithFrame:CGRectMake((kScreenW-24)/3*2, 0, 1, 36)];
     shuxian2.backgroundColor = RGB(232, 232, 242);
     [self.contentView addSubview:shuxian2];
    
    
        
}



-(void)setDataModel:(HWzhongjianModel *)dataModel {
    
    _dataModel = dataModel;
    
    self.datelabel.text = [NSString stringWithFormat:@"%@",dataModel.time];
      self.jifenLabe.text = [NSString stringWithFormat:@"%@",dataModel.note];
    
         self.xiugailabel.text = [NSString stringWithFormat:@"%@",dataModel.gold];
    
    
    // 我的收藏
    
}


//-(void)setDataModel:(HWYaoqingModel *)dataModel {
//    
//    
//    _dataModel = dataModel;
//    
//    self.datelabel.text = [NSString stringWithFormat:@"%@",dataModel.reg_time];
//    
//      self.jifenLabe.text = [NSString stringWithFormat:@"%@",dataModel.user_name];
//    
//    self.xiugailabel.text = [NSString stringWithFormat:@"%@",dataModel.gold];
//     
//    
//}
//
//
//-(void)setJingbiModel:(HWjingbiMingxiModel *)jingbiModel {
//    
//    
//    _jingbiModel = jingbiModel;
//    
//    
//    self.datelabel.text = [NSString stringWithFormat:@"%@",jingbiModel.time];
//      
//        self.jifenLabe.text = [NSString stringWithFormat:@"%@",jingbiModel.gold];
//      
//      self.xiugailabel.text = [NSString stringWithFormat:@"%@",jingbiModel.note];
//    
//    
//}


@end
